package com.lp.biz.member.mapper;

import com.lp.biz.member.model.query.DistributorQuery;
import com.lp.biz.member.model.vo.DistributorList;
import com.lp.biz.member.model.vo.RateList;
import com.lp.biz.member.model.vo.WithdrawalHistories;

import java.util.List;
import java.util.Set;

/**
 * @program: backend
 * @description:
 * @author: Ke.Song
 * @since: 2024-06-29 21:05:27
 */
public interface WithdrawalMapper {

    /**
     * 分销人列表
     * @param query 查询参数
     * @return 查询结果
     */
    List<DistributorList> getDistributorList(DistributorQuery query);

    /**
     * 分销人提现记录
     * @param query 查询参数
     * @return 查询结果
     */
    List<WithdrawalHistories> getHistories(DistributorQuery query);

    /**
     * 分销比例
     * @return 查询结果
     */
    List<RateList> getRateList();

    /**
     * 更新用户的Rate
     * @param memberIds 用户id
     */
    void updateRate(Set<Integer> memberIds);
}
